<template>
  <div >
    <p>{{model.title}}</p>
    <input type="text" 
           :placeholder="model.placeholder"
           v-model="model.searchKey">
    <button>检索</button>
  </div>
</template>

<script>
export default {
  name: 'search',
  props:['model'],
  methods:{
    valueChange(){
      console.log(this.model.searchKey);
    }
  }
}
</script>


<style scoped>
  *{
    font-family:'Noto Sans'
  }

  p{
    font-size: 20px;
  }

  input{
    line-height: 24px;
    background-color: #ffffff;
    margin-right: 20px;
    box-shadow: 0 1px 1px rgba(0,0, 0, 0.15);
    
    outline:none;
  }

  button{
    border: none;
  }

 

</style>
